package com.yanqu.road.entity.union.honors;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_union_honor_point", desc = "商会荣誉点")
public class UnionHonorsPointData extends DataObject {

    @FieldTypeAnnotation(desc = "商会uid", select = true, update = true)
    private String unionUid;

    @FieldTypeAnnotation(desc = "活动类型", update = true)
    private int activityType;

    @FieldTypeAnnotation(desc = "活动小类型", update = true)
    private int activityChildType;

    @FieldTypeAnnotation(desc = "荣誉点")
    private long honors;

    @FieldTypeAnnotation(desc = "更新时间")
    private int lastUpdateTime;


    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        if(!Objects.equals(this.unionUid, unionUid)) {
            this.unionUid = unionUid;
            setUpdateOption();
        }
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        if(this.activityType != activityType) {
            this.activityType = activityType;
            setUpdateOption();
        }
    }

    public int getActivityChildType() {
        return activityChildType;
    }

    public void setActivityChildType(int activityChildType) {
        if(this.activityChildType != activityChildType) {
            this.activityChildType = activityChildType;
            setUpdateOption();
        }
    }

    public long getHonors() {
        return honors;
    }

    public void setHonors(long honors) {
        if(this.honors != honors) {
            this.honors = honors;
            setUpdateOption();
        }
    }

    public int getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(int lastUpdateTime) {
        if(this.lastUpdateTime != lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }
}
